home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkIconButton.h.z / VkIconButton.h
C/C++ Source or Header  |  1996-09-20  |  2KB  |  49 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #ifndef _VK_ICON_BUTTON
  18. #define _VK_ICON_BUTTON
  19.  
  20. #include <Vk/VkComponent.h>
  21.  
  22.  
  23. class VkIconButton : public VkComponent {
  24.   
  25.   public:
  26.  
  27.   VkIconButton(char *name, Widget, char **, Boolean showLabel = TRUE);
  28.   ~VkIconButton();
  29.  
  30.   virtual const char* className();
  31.  
  32.   protected:
  33.  
  34.     static void enterHandler(Widget, XtPointer, XEvent *, Boolean *);
  35.     static void leaveHandler(Widget, XtPointer, XEvent *, Boolean *);
  36.  
  37.     void enter();
  38.     void leave();
  39.  
  40.     void doRealMotif(Widget parent, char **xpmIcon, Boolean showLabel);
  41.     void doBuffy(Widget parent, char **xpmIcon, Boolean showLabel);
  42.  
  43.     Pixmap _pixmap, _highlitePixmap;
  44.     Pixel _hilite, _bg;
  45.  
  46. };
  47.  
  48. #endif
  49.